package com.design.facdiff.method;

public class FactoryMethodDemo {
    public static void main(String[] args) {
        DeviceFactory tvFactory = new TVFactory();
        DeviceFactory audioFactory = new AudioFactory();

        Device tv = tvFactory.createDevice();
        Device audio = audioFactory.createDevice();

        tv.produce();
        audio.produce();
    }
}
